import requests from "@/api/request";

//用户登录接口
export const userLogin = (data) =>{
    return requests({
        url: '/login',
        data,
        method:'post'
    })
}

//用户注册接口
export const userRegister = (data) =>{
    return requests({
        url: '/register',
        data,
        method:'post'
    })
}

//获取所有学生接口
export const userList = () =>{
    return requests({
        url: '/userList',
        method:'get'
    })
}
